Cast to a signed type before negating if we really want the result to be negative.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 26 May 2006 12:49:29 +0000 (13:49 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 26 May 2006 12:49:29 +0000 (13:49 +0100)
commit3afabf1400ebc2866d021aa679df5c4839259f35
treeb4ae4bc161b62a01706277e02021f9af914b2963
parent165bf6f0bdfb5ae16fd768822fc0f28517d2fa34
Cast to a signed type before negating if we really want the result to be negative.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/traps.c
xen/arch/x86/x86_emulate.c